package com.yh.aop;


public class Test {
    public static void main(String[] args) {
        MyServiceInterface serviceInterface=new MyServiceimp();
        JDKDynamicProxy jdkDynamicProxy=new JDKDynamicProxy();
        MyServiceInterface proxy = (MyServiceInterface)jdkDynamicProxy.getProxy(serviceInterface);
        proxy.doService();
    }
}
